print("hello ALua")
local ret = func(34)

print("result is " .. tostring(ret))

local p = CreatePerson();
p:add_height(1.2);
p.show_type();
print("global_data is " , global_data);
global_data = 1971
print("global_data is " , global_data);
_G.t = 3
print("global t is ", t);
print("Person's age is", p.age);
p.age = 24;
print("Person's age is", p.age);

print("Person's count is:", p.count);

local k = CreateStudent();
print("Student's id is ", k.id);
k.id = 2334
print("Student's id is ", k.id);
print("calling get_id:", k:get_id());
print("current height:", k.height);
k:add_height(3)
print("calling add_height", k.height);

k:TestLib();

local g = ModifyPerson(k);
print("after modify person's age, age is ", g.age, k.age);
print("index no-exist field", k.no_exist);